﻿#include "contract_type.h"
#include "factor_type.h"
#include <memory>
#include <unordered_map>
#include<vector>
class Collection {

public:
	Collection();

	uint32_t id;//对应数据库中的id
	std::string code;//代码，代号
	std::string name;//中文名称
	std::string about;//备注
	uint32_t total_count;//包含item数目
	uint32_t loaded_count = 0;//包含item数目
	uint8_t category;//0:system category(hidden),1 sys defined category,2 user define category.
	//std::vector<Symbol> symbols;
	std::unordered_map<uint32_t, uint64_t> contracts_id;//包含exchange code和symbol
	//std::vector<std::shared_ptr<Contract>> contracts_obj;//本集合包含的所有item
	std::unordered_map<uint32_t, uint32_t> factors_id;
};